﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OrderControl {
    class Program {
        static void Main(string[] args) {
            OrderService service = new OrderService();
            Order order = new Order();
            Customer customer = new Customer();
            OrderDetail orderDetail = new OrderDetail();
            Commodity commodity = new Commodity();
            OrderDetail orderDetail1 = new OrderDetail();
            customer.Name = "Nadad2";
            commodity.Name = "da3f";
            commodity.UnitPrice = 12;
            orderDetail.Commodity = commodity;
            orderDetail.Amount = 5;
            order.Customer = customer;
            order.Details = new List<OrderDetail>();
            order.Details.Add(orderDetail);
            order.ShippingAddress = "dak4";

            //service.AddOrder(order);
            //service.GetAllOrders().ForEach(p => Console.WriteLine(p));
            //service.DeleteDetail(order.OrderId, orderDetail.OrderDetailId);
            //service.GetAllOrders().ForEach(p => Console.WriteLine(p));
            //service.DeleteOrder(order.OrderId);
            //service.GetAllOrders().ForEach(p => Console.WriteLine(p));
        }
    }
}
